package dockyin.action.pattern.strategy;


public class Minus extends AbstractCalculator implements ICalculator {

    @Override
    public int calculate(String exp) {
        int[] params = split(exp, "-");
        return params[0] - params[1];
    }
}
